//
//  EditDataTableCell.m
//  MiaoTu
//
//  Created by dllo on 16/8/30.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "EditDataTableCell.h"

@interface EditDataTableCell () <UITextFieldDelegate>
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@end

@implementation EditDataTableCell

- (void)setEditData:(EditDataModel *)editData {
    _editData = editData;
    _titleLabel.text = _editData.title;
    _infoTextField.placeholder = _editData.placeholder;
}

- (void)awakeFromNib {
    // Initialization code
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (BOOL)textFieldShouldReturn:(UITextField *)textField {
    [textField endEditing:YES];
    return YES;
}

@end
